package com.wude.http;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

import com.mc.developmentkit.utils.NetworkUtils;
import com.wude.tools.Utils;


public class NetWorkBroadcast extends BroadcastReceiver {

    private ConnectivityManager connectivityManager;
    private NetworkInfo info;

    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        if (action.equals(ConnectivityManager.CONNECTIVITY_ACTION)) {
            String currentNetworkType = NetworkUtils.getCurrentNetworkType();
            Utils.TS("当前：" + currentNetworkType + "网络");
        }
    }


}

